package com.ncp.servlet.registerlogin;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ncp.model.biz.registerlogin.LoginBiz;
import com.ncp.model.entity.registerlogin.UserBasicBean;

public class AddImageTurnServlet extends HttpServlet {

	
	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {

		this.doPost(request, response);
	}

	
	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		response.setContentType("text/html;charset=utf-8");
		request.setCharacterEncoding("utf-8");
		response.setCharacterEncoding("utf-8");
		String UserID = request.getParameter("UserID"); 
		int userID = Integer.parseInt(UserID);
		LoginBiz lb = new LoginBiz();
		UserBasicBean ubb = lb.getMyImg(userID);
		
		request.setAttribute("ubb", ubb);
		request.getRequestDispatcher("pages/registerlogin/AddMyimg.jsp").forward(request, response);

	}

}
